Adding error catch and echo when calling alignment script