Added `exit` to correct redirect after `Rebuild` and `Delete build` is clicked

Without `exit` it's not redirected.