bpls to catch exceptions

Created by: williamfgc

inserting try-catch block on bpls to exit normally (no signal) after an exception is caught