quit the parser service if null has been received from the input
fix several warnings
fix resource leak warnings