Minor formatting changes in beanstalk controller

- Remove unnecessary "begin" keywords
- Remove trailing whitespace
- Remove unnecessary arguments to #raise